package com.xnyzc.lhy.didi.common.constants;

import com.xnyzc.lhy.common.penum.cms.EVehicleType;

public enum EXieChengVehicleType {

    vehTypeEconomic(117L, "经济型"),
    vehTypeComfortable(118L, "舒适型"),
    vehTypeLuxury(119L, "豪华型"),//携程没有开
    vehTypeBusiness(121L, "商务型");

    Long code;
    String desc;

    EXieChengVehicleType(Long code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Long getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static EVehicleType getByType(int type) {
        switch (type) {
            case 117: {
                return EVehicleType.vehTypeEconomic;
            }
            case 118: {
                return EVehicleType.vehTypeComfortable;
            }
            case 119: {
                return EVehicleType.vehTypeLuxury;
            }
            case 121: {
                return EVehicleType.vehTypeBusiness;
            }
        }
        return null;
    }
    public static EXieChengVehicleType getByCType(int type) {
        switch (type) {
            case 0: {
                return EXieChengVehicleType.vehTypeEconomic;
            }
            case 1: {
                return EXieChengVehicleType.vehTypeComfortable;
            }
            case 2: {
                return EXieChengVehicleType.vehTypeBusiness;
            }
            case 3: {
                return EXieChengVehicleType.vehTypeLuxury;
            }
        }
        return null;
    }
}
